//
//  BaseNavigationViewController.m
//  JobFreely
//
//  Created by Dale on 2017/5/23.
//  Copyright © 2017年 Dale. All rights reserved.
//

#import "BaseNavigationViewController.h"

@interface BaseNavigationViewController ()

@end

@implementation BaseNavigationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationBar.barTintColor = ColorRGB(32, 35, 47);
    self.navigationBar.translucent  = NO;
    
    //去掉NavigationBar 下面的横线
//    self.navigationBar.clipsToBounds = YES;
    [self.navigationBar setBackgroundImage:[UIImage new] forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault];
    self.navigationBar.shadowImage = [UIImage new];
    
    //开启滑动返回手势
    //    self.interactivePopGestureRecognizer.delegate = nil;
    
    NSShadow *shadow = [[NSShadow alloc] init];
    shadow.shadowColor = [UIColor blackColor];
    shadow.shadowOffset = CGSizeMake(0.5, 0.5);
    NSDictionary *dic = @{NSForegroundColorAttributeName : [UIColor whiteColor],
                          NSShadowAttributeName : shadow,
                          NSFontAttributeName : [UIFont boldSystemFontOfSize:19.0]};
    self.navigationBar.titleTextAttributes = dic;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
